{extend name="admin@public/base_content" /}
{block name="body">}
<body>
{include file="admin@public/common" /}
<div class="layui-form">
    <table class="layui-table lay-even">
        <thead>
        <tr>
            <th width="80">ID</th>
            <th width="180">封面图</th>
            <th width="180">标题</th>
            <th width="180">编辑人</th>
            <!-- <th>内容</th> -->
            <th width="180">创建时间</th>
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="v"}
        <tr>
            <td>{$v.id}</td>
            <td>{if condition="$v.image"}<img src="{$v.image}" width="100" height="50">{else/}暂无封面图{/if}</td>
            <td>{$v.title}</td>
            <td>{$v.poper}</td>
            <!-- <td>{$v.content}</td> -->
            <td>{:date('Y-m-d',$v['create_time'])}</td>
            <td>
                <a href="contentAdd.html?id={$v.id}" class="layui-btn layui-btn-mini modal-catch"><i class="iconfont">&#xe653;</i>编辑</a>
                <a class="layui-btn layui-btn-mini layui-btn-danger ajax"
                   data-list='{"key":"id={$v.id}","msg":true,"render":"true","action":"del"}'
                   data-params='{"url": "{:url("del")}","confirm":"true","data":"id={$v.id}","complete":"del"}'>
                    <i class="iconfont">&#xe626;</i>删除
                </a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
<div class="text-right">
    <div class="layui-box layui-laypage layui-laypage-molv" id="layui-laypage-1">
        {$page}
    </div>
</div>
</body>
{/block}
{block name="script"}
<script src="__ADMIN__/js/jquery/jquery.min.js"></script>
<script>
    layui.use('default');
</script>
{/block}